草庐IT

找不到 Javac

全部标签

c# - 找不到 CodeDom 提供程序类型 "Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider ..."

我使用visualstudio发布选项向我的主机发布了我的网站。我的主机使用asp.net4.5.1框架。它在本地运行良好,但在我发布之后,却出现了这个错误。我的本​​地visualstudio解决方案文件夹包含一个名为packages的文件夹,它包含一些文件是否与错误有关?这是我的配置文件(为清楚起见省略了其他行):谢谢。 最佳答案 bin文件夹中的程序集版本必须与web.config文件的compilers部分中指示的版本匹配。当我更新服务器bin文件夹时,这个错误发生在我身上。因为包Microsoft.CodeDom.Prov

c# - 找不到文件异常..但它在那里

嘿,这将是那些愚蠢的问题之一。我试图在我的本地系统上获取一个文件,但我不断收到FileNotFoundException抛出。请有人让我直截了当:)if(File.Exists(@"C:\logs\hw-healthways-prod_2009-08-26.tar")){Console.WriteLine("Yay");}else{thrownewFileNotFoundException();}尝试将文件移动到与正在执行的应用程序相同的位置并执行以下操作:if(File.Exists("hw-healthways-prod_2009-08-26.tar"))同样的事情。然后我制作了一

c# - 在配置中找不到指定的命名连接,不打算与 EntityClient 提供程序一起使用,或者无效

我在一个解决方案中有两个项目。PizzaSoftware.DataPizzaSoftware.UI在数据项目中,我有连接到我的数据库的EntityFramework模型。我的UI项目有一个对数据的项目引用,它是这样的:我在UserControls文件夹中创建了一个用户控件。usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Drawing;usingSystem.Data;usingSystem.Linq;usingSystem.Text;usingSystem.Windo

c# - Activator.CreateInstance 找不到构造函数(MissingMethodException)

我有一个具有以下构造函数的类publicDelayCompositeDesigner(DelayCompositeCompositeObject){InitializeComponent();compositeObject=CompositeObject;}以及一个没有参数的默认构造函数。接下来我尝试创建一个实例,但它只能在没有参数的情况下工作:vardesigner=Activator.CreateInstance(designerAttribute.Designer);这工作得很好,但如果我想传递参数,它不会:vardesigner=Activator.CreateInstance

c# - 在派生类型中找不到属性集方法

如.NETReflectionsetprivateproperty中所讨论可以使用私有(private)setter设置属性。但是当在基类中定义属性时,将抛出System.ArgumentException:“找不到属性设置方法”。一个例子可以是:usingSystem;classTest{publicDateTimeModifiedOn{get;privateset;}}classDerived:Test{}staticclassProgram{staticvoidMain(){Derivedp=newDerived();typeof(Derived).GetProperty("Mo

c# - 找不到类型或命名空间名称 'async'

这个问题在这里已经有了答案:Usingasync-awaiton.net4(5个答案)关闭6年前。我试图在WPF应用程序.NETFramework4ClientProfile中使用以下方法,但我收到此错误:Thetypeornamespacename'async'couldnotbefound我正在使用usingSystem.Threading.Tasks;知道哪里出了问题吗?提前致谢privateasyncTaskSumPageSizesAsync(){HttpClientclient=newHttpClient();TaskgetContentsTask=client.GetByt

c# - 找不到类型或命名空间(是否缺少 using 指令或程序集引用?)

当我尝试编译我的C#程序时出现以下错误:找不到类型或命名空间名称“Login”(是否缺少using指令或程序集引用?)usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespaceFootballLeague{publicpartialclassMainMenu:Form{FootballLeagu

c# - 错误 - 使用 sdkToolsPath 找不到 al.exe

这个问题在这里已经有了答案:Taskcouldnotfind"AL.exe"usingtheSdkToolsPath(4个答案)关闭6年前。我将VisualStudio2012解决方案迁移到了VisualStudio2015。我在Windows10上工作。我的解决方案的目标.NETFramework是4.5。我想继续使用那个版本。所以我想我必须卸载.NETFramework4.6。ErrorMessage:Taskcouldnotfind"AL.exe"usingtheSdkToolsPath""ortheregistrykey"HKEY_LOCAL_MACHINE\SOFTWARE\

c# - 找不到 WCF 绑定(bind)错误?

我正在使用VSTS2008+C#+.Net3.0。我正在使用自承载WCF。执行以下语句时,出现以下绑定(bind)未找到错误。我已经发布了整个app.config文件,有什么问题吗?ServiceHosthost=newServiceHost(typeof(MyWCFService));错误信息,Configurationbindingextension'system.serviceModel/bindings/MyBinding'couldnotbefound.Verifythatthisbindingextensionisproperlyregisteredinsystem.ser

javascript - webpack:找不到模块:错误:无法解析(使用相对路径)

我有一个应用程序的结构(node_modules目录从这个列表中排除):├──actions.js├──bundle.js├──components│  ├──App.js│  ├──Footer.js│  ├──Link.js│  ├──Todo.js│  └──TodoList.js├──Containers│  ├──AddTodo.js│  ├──FilterLink.js│  └──VisibleTodoList.js├──index.html├──index.js├──main.js├──package.json├──package-lock.json├──reducers